package cn.getech.data.development.utils;

import cn.getech.data.development.config.properties.DataDevelopmentConfig;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Getter
@Component
public class HdfsUserUtil {

    private String rangerUserName;
    private String rangerUserPassword;

    @Autowired
    private DataDevelopmentConfig dataDevelopmentConfig;

    public void setRangerUser(Long userId) {
        rangerUserName = dataDevelopmentConfig.getUserPreffix() + userId;
        rangerUserPassword = dataDevelopmentConfig.getUserPassword();
    }
}
